package scribes.mybus.data;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Column;
@Entity
@NamedQueries( {
	@NamedQuery(name = "getbusdata", query = "SELECT e FROM bus e ORDER BY e.id desc")	
})
@Table(name = "bus1")

public class bus implements Serializable{
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	    private int id;
	    @Column(name = "name")
	    private String name;
	    
	    @Column(name= "latitude")
	    private double latitude;
	    
	    @Column(name= "longitude")
	    private double longitude;
	    
	    @Column(name= "location")
	    private String location;
	    
	    @Column(name= "passenger_count")
	    private int passenger_count;
	    
	    @Column(name= "route_status")
	    private String route_status;
	    
	    @Column(name= "operation_code")
	    private String operation_code;
	    
	    @Column(name= "message")
	    private String message;
	    
	    @Column(name= "driver_id")
	    private int driver_id;
	    
	    @Column(name= "bus_id")
	    private int bus_id;

	    @Column(name= "timestamp")
	    private Date timestamp;

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public double getLatitude() {
			return latitude;
		}

		public void setLatitude(double latitude) {
			this.latitude = latitude;
		}

		public double getLongitude() {
			return longitude;
		}

		public void setLongitude(double longitude) {
			this.longitude = longitude;
		}

		public String getLocation() {
			return location;
		}

		public void setLocation(String location) {
			this.location = location;
		}

		public int getPassenger_count() {
			return passenger_count;
		}

		public void setPassenger_count(int passenger_count) {
			this.passenger_count = passenger_count;
		}

		public String getRoute_status() {
			return route_status;
		}

		public void setRoute_status(String route_status) {
			this.route_status = route_status;
		}

		public String getOperation_code() {
			return operation_code;
		}

		public void setOperation_code(String operation_code) {
			this.operation_code = operation_code;
		}

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}

		public int getDriver_id() {
			return driver_id;
		}

		public void setDriver_id(int driver_id) {
			this.driver_id = driver_id;
		}

		public int getBus_id() {
			return bus_id;
		}

		public void setBus_id(int bus_id) {
			this.bus_id = bus_id;
		}

		public Date getTimestamp() {
			return timestamp;
		}

		public void setTimestamp(Date timestamp) {
			this.timestamp = timestamp;
		}

		
}
